﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Avatar.MembershipService;

public partial class UserControl_PersonNavigation : System.Web.UI.UserControl
{
    int _current;
    public int Current
    {
        set
        {
            _current = value;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            switch (_current)
            {
                case 1:
                    UserHome.Attributes.Add("class", "current");
                    break;
                case 2:
                    ResumeCenter.Attributes.Add("class", "current");
                    break;
                case 3:
                    Favorite.Attributes.Add("class", "current");
                    break;
                case 4:
                    Apply.Attributes.Add("class", "current");
                    break;
                case 5:
                    Interview.Attributes.Add("class", "current");
                    break;
                default:
                    break;
            }
        }
    }
    protected void btn_Logout_Click(object sender, EventArgs e)
    {
        LoginManager.Logout();
    }
}
